package org.xbzheng.restful_study.web;

import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.stereotype.Controller;

@Controller
public class GreetingController {

    @MessageMapping("/greetings")
    public String handle(String greeting) {
        return "Hello :" + greeting;
    }

}